<!DOCTYPE html>
<script src="../../resources/testharness.js"></script>
<script src="../../resources/testharnessreport.js"></script>
<script src="../../resources/run-after-layout-and-paint.js"></script>
<div id="targetDiv" style="position: relative; cursor: pointer; width: 300px; height: 300px;"></div>
<script>
async_test(function(t) {
  var clientRect = targetDiv.getBoundingClientRect();
  var x = (clientRect.left + clientRect.right) / 2;
  var y = (clientRect.top +  clientRect.bottom) / 2;
  eventSender.gestureShowPress(x, y);
  runAfterLayoutAndPaint(t.step_func(function() {
    targetDiv.parentNode.removeChild(targetDiv);
    runAfterLayoutAndPaint(t.step_func_done(function() {}));
  }));
});
</script>
